{% extends "base.html" %}
{% load bootstrap3 %}
{% block extra_head %}
<style type="text/css">
.form-signin {max-width: 330px;padding: 15px;margin: 0 auto;}
.form-signin .form-control {
  position: relative;
  height: auto;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  padding: 10px;
  font-size: 16px;
}
</style>
{% endblock %}
{% block content %}

<div class="jumbotron">
<div class="container">

{% if form.errors %}

<p>Your username and password didn't match. Please try again.</p>
{% endif %}
<form class="form-signin" role="form" method="post" action="{% url 'django.contrib.auth.views.login' %}?next={{request.path}}">
{% csrf_token %}
<h2 class="form-signin-heading">Please Sign in</h2>
<br>
<input type="username" name="username" class="form-control" placeholder="Username" required>
<input type="password" name="password" class="form-control" placeholder="Password" required>
<br>
<input class="btn btn-lg btn-primary btn-block" type="submit" value="Sing in" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
</div>
</div>
{% endblock %}
